<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk">
    <link href="http://images.5d6d.com/orig/admincp/admincp.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="http://images.5d6d.com/orig/javascript/common.js"></script>
    <script src="http://images.5d6d.com/orig/javascript/iframe.js" type="text/javascript"></script>
    <script language="JavaScript">
        function checkalloption(form, value) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.value == value && e.type == 'radio' && e.disabled != true) {
                    e.checked = true;
                }
            }
        }

        function checkallvalue(form, value, checkall) {
            var checkall = checkall ? checkall : 'chkall';
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.type == 'checkbox' && e.value == value) {
                    e.checked = form.elements[checkall].checked;
                }
            }
        }

        function zoomtextarea(objname, zoom) {
            zoomsize = zoom ? 10 : -10;
            obj = $(objname);
            if (obj.rows + zoomsize > 0 && obj.cols + zoomsize * 3 > 0) {
                obj.rows += zoomsize;
                obj.cols += zoomsize * 3;
            }
        }

        function redirect(url) {
            window.location.replace(url);
        }

        var collapsed = getcookie('CM2_collapse');
        function collapse_change(menucount) {
            if ($('menu_' + menucount).style.display == 'none') {
                $('menu_' + menucount).style.display = '';
                collapsed = collapsed.replace('[' + menucount + ']', '');
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_reduce.gif';
            } else {
                $('menu_' + menucount).style.display = 'none';
                collapsed += '[' + menucount + ']';
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_add.gif';
            }
            setcookie('CM2_collapse', collapsed, 2592000);
        }
    </script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6">
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
                <tr>
                    <td><a href="#"
                           onClick="parent.menu.location='admincp.php?action=menu'; parent.main.location='admincp.php?action=home';return false;">系统设置首页</a>&nbsp;&raquo;&nbsp;编辑用户
                    </td>
                </tr>
            </table>
            <br/>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
                <tr class="header">
                    <td>
                        <div style="float:left; margin-left:0px; padding-top:8px"><a href="###"
                                                                                     onclick="collapse_change('tip')">技巧提示</a>
                        </div>
                        <div style="float:right; margin-right:4px; padding-bottom:9px"><a href="###"
                                                                                          onclick="collapse_change('tip')"><img
                                id="menuimg_tip" src="http://images.5d6d.com/orig/admincp/menu_reduce.gif" border="0"/></a>
                        </div>
                    </td>
                </tr>
                <tbody id="menu_tip" style="display:">
                    <tr>
                        <td>
                            <ul>
                                <li>用户组名称以黑体字显示的，为系统用户组；以斜体字显示的，为特殊用户组；否则为会员用户组。
                            </ul>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br/>
             <s:form method="post" action="${cxt}/admin/editUsers.do">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder"
                   style="table-layout: fixed">

                    <input type="hidden" name="formhash" value="02d3e271">
                    <tr align="center" class="header">
                        <td width="48"><input type="checkbox" name="chkall" onclick="checkall(this.form, 'uidarray')"
                                              class="checkbox">删?
                        </td>
                        <td width="100">用户名</td>
                        <td width="60">积分</td>
                        <td width="60">发帖数</td>
                        <td width="80">管理组
                        <td width="80">用户组</td>
                        <td width="250">编辑</td>
                    </tr>
                <c:choose>
                    <c:when test="${actionBean.userProfile!=null}">
                        <tr align="center" class="smalltxt">
                        <td class="altbg1"><input type="checkbox" name="uidarray[]" value="1" disabled class="checkbox">
                        </td>
                        <td class="altbg2"><a href="profile-uid-1.html" target="_blank">${actionBean.userProfile.user.username}</a></td>
                        <td class="altbg1" title="威望: 10
金钱: 0">${actionBean.userProfile.user.point}
                        </td>
                        <td class="altbg2">${actionBean.userProfile.user.totalTopic}</td>
                        <td class="altbg1"><b>${actionBean.userProfile.user.adminId}</b></td>
                        <td class="altbg2"><b>${actionBean.userProfile.user.groupId}</b></td>
                        <td class="altbg1"><a href="${ctx}/admin/SetUserGroup.do?userId=${item.user.id}">[用户组]</a>
                            <a href="${ctx}/admin/editUsers.do?detaiUserDataForm&userId=${actionBean.userProfile.user.id}">[详情]</a></td>
                    </tr>
                    </c:when>
                    <c:otherwise>
                <c:forEach var="item" items="${actionBean.userList.elements}">
                    <tr align="center" class="smalltxt">
                        <td class="altbg1"><input type="checkbox" name="uidarray[]" value="1" disabled class="checkbox">
                        </td>
                        <td class="altbg2"><a href="profile-uid-1.html" target="_blank">${item.user.username}</a></td>
                        <td class="altbg1" title="威望: 10
金钱: 0">${item.user.point}
                        </td>
                        <td class="altbg2">${item.user.totalTopic}</td>
                        <td class="altbg1"><b>${item.user.adminId}</b></td>
                        <td class="altbg2"><b>${item.user.groupId}</b></td>
                        <td class="altbg1"><a href="${ctx}/admin/SetUserGroup.do?userId=${item.user.id}">[用户组]</a>
                            <a href="${ctx}/admin/editUsers.do?detaiUserDataForm&userId=${item.user.id}">[详情]</a></td>
                    </tr>
                </c:forEach>
                    </c:otherwise>
                </c:choose>
            </table>
            <br>
                 <center>
                     用户名：<s:text size="12" name="userName"/>
                     <input class="button" type="submit" name="findUserList" value="提 交">
                 </center>
        </s:form>
    </td>
</tr>
</table>
<br><br>
</body>
</html>
